package exercise;

public class Cuboid extends Rectangle{
//    private double length;
//    private double width;
    private double height;


    public Cuboid() {
        super();
    }

    public Cuboid(double length, double width, double height) {
        super(length, width);
        this.height = height;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }


    public double volume(){
        return this.getLength() * this.getWidth() * height;
    }
}
